import axios from 'axios';
import showMessage from '@/utils/showMessage';
export default async function getBLogList() {
    const resp = await axios('/api/blogtype');
    if (resp.data.code === 0) {
        return resp.data.data;
    } else {
        return showMessage(resp.data.msg, 'error', 1000, Home)
    }

}